package com.quartz.SpringBootQuartz.mapper;

import com.quartz.SpringBootQuartz.entity.Cron;
import com.quartz.SpringBootQuartz.entity.JobEntity;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;
import java.util.Map;

public interface JobEntityMapper {
    //@Cacheable(value = "findByCriteria")
    List<JobEntity> findByCriteria(JobEntity jobEntity)throws Exception;
    //@Cacheable(value = "findGroup")
    List<String> findGroups()throws Exception;
    //@Cacheable(value = "findStatus")
    List<String> findStatus()throws Exception;

    Integer deleteById(Integer id)throws Exception;

    Integer updateById(JobEntity jobEntity)throws Exception;

    Integer add(JobEntity jobEntity)throws Exception;

    List<Cron> findCrons()throws Exception;

    List<Integer> findId(Integer id)throws Exception;

    List<JobEntity> findById(Integer id)throws Exception;
}
